package com.yz.group5.med_booking.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yz.group5.med_booking.entity.MedicalRecord;

import java.util.List;

public interface MedicalRecordService extends IService<MedicalRecord> {
    List<MedicalRecord> listAllMedicalRecords();

    /**
     * 根据挂号ID查询诊疗记录
     */
    List<MedicalRecord> getByRegistrationId(Integer registrationId);

    /**
     * 根据患者ID查询历史诊疗记录
     */
    List<MedicalRecord> getHistoryByPatientId(Integer patientId);

    boolean applyHospitalization(Integer id);
}